<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>数据备份</title>
<link rel="Stylesheet" href="../css/main.css" type="text/css" />
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../home/js/navbar.js"></script>
<script type="text/javascript" src="../home/js/backup.js"></script>
</head>
<body>
<div class="pagecontent">
	<div class="pagehead">
		{#include_php file='../home/head.php' once=true#}
	</div>
	<div class="pagebody">
		<div class="bodyleft">
			{#include_php file='../home/navbar.php' once=true#}
		</div>		
		<div class="bodyright">
			<h2>数据备份</h2>
			<div class="sepline"></div>
			<div class="bakhellp">
				<p class="msgok">点任意一个备份链接将会对数据库进行备份</p>
				<p class="msgok">点删除将会删除当前行备份文件</p>
				<p class="msgok">点恢复将用当前行备份文件来恢复数据库，在恢复前会先对数据库进行备份</p>
			</div>
			<div>
				<ul class="backup">					
					<li>
						<div class="bak_left"><span class="headtxt">备份文件名称</span></div>
						<div class="bak_left"><span class="headtxt">备份时间</span></div>
						<div class="bak_right"><span class="headtxt">操作</span></div>
						<div style="clear:both;"></div>
					</li>
					<li class="sepline2"></li>
					<!--{foreach name=filelist from=$files item=file}-->
					<li>
						<div class="bak_left">{#$file.fname#}</div>
						<div class="bak_left">{#$file.time#}</div>
						<div class="bak_right"><a class="_delbak" href="../home/dobackup.php?action=del&file={#$file.fname#}">删除</a>&nbsp;|&nbsp;<a class="_restorebak" href="../home/dobackup.php?action=restore&file={#$file.fname#}">恢复</a>|&nbsp;<a href="../home/dobackup.php?action=backup&file={#$file.fname#}">备份</a></div>
						<div style="clear:both;"></div>
					</li>
					<!--{if !$smarty.foreach.filelist.last}-->
					<li class="sepline2"></li>
					<!--{/if}-->
					<!--{foreachelse}-->
					<li><a href="../home/dobackup.php?action=backup">开始备份</a></div></li>
					<!--{/foreach}-->
				</ul>
			</div>
		</div>		
	</div>	
	<div class="pagetail">
	{#include_php file='../home/footer.php' once=true#}
	</div>
</div>
</body>
</html>